package ru.jexp.rcp.supply;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IPlaceholderFolderLayout;

import ru.jexp.rcp.supply.view.ViewPartAccount;
import ru.jexp.rcp.supply.view.ViewPartClient;
import ru.jexp.rcp.supply.view.ViewPartD18Pattern;
import ru.jexp.rcp.supply.view.ViewPartDetail;
import ru.jexp.rcp.supply.view.ViewPartMark;
import ru.jexp.rcp.supply.view.ViewPartMaterial;
import ru.jexp.rcp.supply.view.ViewPartNakl;
import ru.jexp.rcp.supply.view.ViewPartNavigation;
import ru.jexp.rcp.supply.view.ViewPartNd;
import ru.jexp.rcp.supply.view.ViewPartPf;
import ru.jexp.rcp.supply.view.ViewPartPki;
import ru.jexp.rcp.supply.view.ViewPartProject;
import ru.jexp.rcp.supply.view.ViewPartRequirment;
import ru.jexp.rcp.supply.view.ViewPartSe;
import ru.jexp.rcp.supply.view.ViewPartSklad;
import ru.jexp.rcp.supply.view.ViewPartSupplier;
import ru.jexp.rcp.supply.view.ViewPartZs;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(true);
		layout.addView(ViewPartNavigation.ID, IPageLayout.LEFT, 0.15f, layout
				.getEditorArea());
		IPlaceholderFolderLayout folder = layout.createPlaceholderFolder(
				"ViewList", IPageLayout.BOTTOM, 0.5f, layout.getEditorArea());
		folder.addPlaceholder(ViewPartNd.ID);
		folder.addPlaceholder(ViewPartPki.ID);
		folder.addPlaceholder(ViewPartPf.ID);
		folder.addPlaceholder(ViewPartMaterial.ID);
		folder.addPlaceholder(ViewPartMark.ID);
		folder.addPlaceholder(ViewPartDetail.ID);
		folder.addPlaceholder(ViewPartSe.ID);
		folder.addPlaceholder(ViewPartProject.ID);
		folder.addPlaceholder(ViewPartClient.ID);
		folder.addPlaceholder(ViewPartSupplier.ID);
		folder.addPlaceholder(ViewPartZs.ID);
		folder.addPlaceholder(ViewPartRequirment.ID);
		folder.addPlaceholder(ViewPartAccount.ID);
		folder.addPlaceholder(ViewPartNakl.ID);
		folder.addPlaceholder(ViewPartSklad.ID);
		folder.addPlaceholder(ViewPartD18Pattern.ID);
	}
}
